/**
  * Author: Mei
  * Date: 2020-11-20 18:47
  * Description: 
  *
  */
#include <iostream>
#include <vector>
#include <algorithm>
#include <memory>
#include <utility>
#include <functional>
#include <numeric>

using namespace std;
class Nothing {
public:
    Nothing() {
        cout << "Nothing::Nothing()" << endl;
    }
    ~Nothing() {
        cout << "~Nothing::Nothing()" << endl;
    }
};
void doubleDelete() {
    Nothing *n = new Nothing();
    //shared_ptr<Nothing> smart(n);
    //shared_ptr<Nothing> smart2(smart);

    unique_ptr<Nothing> smart3(n);
    //不允许这样使用复制构造函数
    //unique_ptr<Nothing> smart4(smart3);
}
int main() {
    doubleDelete();


    return 0;
}